﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class menu : MonoBehaviour
{
    private bool issingle;
    private Vector3 v1, v2;

	void Start ()
    {
        issingle = true;
        v1 = new Vector3(-3.35f, -2.9f, 0);
        v2 = new Vector3(-3.35f, -4.21f, 0);
    }
	
	// Update is called once per frame
	void Update ()
    {
        if (Input.GetKeyDown(KeyCode.S) && issingle)
        {
            issingle = false;
            transform.position = v2;
        }
        if (Input.GetKeyDown(KeyCode.W) && !issingle)
        {
            issingle = true;
            transform.position = v1;
        }
        if (Input.GetKeyDown(KeyCode.Space) && issingle)
        {
            SceneManager.LoadScene(1);
        }
    }
}
